package com.splic.api.service;

import com.splic.common.utils.JwtUtils;
import org.springframework.stereotype.Service;

/**
 * ==========================
 * 开发：singe
 * 创建时间：2022-03-13 22:17
 * 版本: 1.0
 * 描述：TODO
 * ==========================
 */
@Service
public class LoginService {


    public String getToken(Long userId,String password){
        return JwtUtils.createToken(userId.toString(),password, JwtUtils.EXPIRE_TIME_SIXTY);
    }
    

}
